<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/sq.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <!--banner begin-->
    <? include("_include.user.topbar.php")?>
    <!--banner end-->
    <!--member center-->
    <div class="member-box">
        <div class="content">
			<? include("_include.user.leftnav.php") ?>
            <div class="member-box-r">
                <div class="member-item1">
                    <div class="m-title">详细资料</div>
                    <?php include_once('_include.user.ordersearch.php');?>
                </div>
                <div class="member-basic">
                  <form id="infoform" name="infoform" method="post" action="user_infoaddsave.php?action=edit">
                    <table class="mbasic-table">
                      <tbody>
                        <tr>
                          <td class="left"><label>QQ :</label></td>
                          <td class="right"><input name="user_qq" type="text" class="basic-input" id="user_qq" value="<?=$user_qq?>" /></td>
                          <td class="left"><label>MSN :</label></td>
                          <td class="right"><input name="user_msn" type="text" class="basic-input" id="user_msn" value="<?=$user_msn?>" /></td>
                        </tr>
                        <tr>
                          <td class="left">国籍:</td>
                          <td class="right"><select name="user_country" class="basic-select">
                              <option value="">请选择国籍</option>
                              <? $bigIDs = 267; getSoonClass_option($bigIDs,'',$user_country,3);?>
                          </select></td>
                        </tr>
                        <tr>
                          <td class="left"><label>目前所在地 :</label></td>
                          <td class="right"><div class="now_city_select">
                              <select class="basic-select prov" name="user_localprov">
                              </select>
                              <select class="basic-select city" name="user_localcity" disabled="disabled">
                              </select>
                              <select class="basic-select dist" name="user_localdist" disabled="disabled">
                              </select>
                          </div></td>
                          <td class="left"><label></label></td>
                          <td class="right">&nbsp;</td>
                        </tr>
                        <tr>
                          <td class="left"><label>家乡所在地 :</label></td>
                          <td class="right"><div class="old_city_select">
                              <select class="basic-select prov" name="user_homeprov">
                              </select>
                              <select class="basic-select city" name="user_homecity" disabled="disabled">
                              </select>
                              <select class="basic-select dist" name="user_homedist" disabled="disabled">
                              </select>
                          </div></td>
                        </tr>
                        <tr>
                          <td class="left"><label>生日 :</label></td>
                          <td class="right"><input name="user_birthday" type="text" class="basic-input" id="user_birthday" onclick="laydate()" value="<?=$user_birthday?>" readonly="" /></td>
                        </tr>
                        <tr>
                          <td class="left"><label>星座 :</label></td>
                          <td class="right"><select name="user_constellation" class="basic-select" id="user_constellation">
                              <option value="">请选择星座</option>
                              <? $bigIDs = 214; getSoonClass_option($bigIDs,'',$user_constellation,3);?>
                            </select>
                          </td>
                        </tr>
                        <tr>
                          <td class="left"><label>收入 :</label></td>
                          <td class="right"><select name="user_income" class="basic-select" id="user_income">
                              <option value="">请选择收入</option>
                              <? $bigIDs = 215; getSoonClass_option($bigIDs,'',$user_income,3);?>
                            </select>
                          </td>
                        </tr>
                        <tr>
                          <td class="left"><label>血型 :</label></td>
                          <td class="right"><select name="user_blood" class="basic-select" id="user_blood">
                              <option value="">请选择血型</option>
                              <? $bigIDs = 216; getSoonClass_option($bigIDs,'',$user_blood,3);?>
                            </select>
                          </td>
                        </tr>
                        <tr>
                          <td class="left"><label>体型 :</label></td>
                          <td class="right"><select name="user_figure" class="basic-select" id="user_figure">
                              <option value="">请选择体型</option>
                              <? $bigIDs = 217; getSoonClass_option($bigIDs,'',$user_figure,3);?>
                            </select>
                          </td>
                        </tr>
                        <tr>
                          <td class="left"><label>行业 :</label></td>
                          <td class="right"><select name="user_industry" class="basic-select" id="user_industry">
                              <option value="">请选择行业</option>
                              <? $bigIDs = 218; getSoonClass_option($bigIDs,'',$user_industry,3);?>
                            </select>
                          </td>
                        </tr>
                        <tr>
                          <td class="left"><label>人生格言 :</label></td>
                          <td class="right"><input name="user_maxim" type="text" class="basic-input" id="user_maxim" value="<?=$user_maxim?>" /></td>
                        </tr>
                        <tr>
                          <td class="left"><label>详细住址 :</label></td>
                          <td class="right"><input name="user_address" type="text" class="basic-input" id="user_address" value="<?=$user_address?>" /></td>
                        </tr>
                        <tr>
                          <td class="left"><label>验证码 :</label></td>
                          <td class="right"><input name="user_passcode" type="text" class="basic-input w115" id="user_passcode" />
							<span class="yzm-pic"><img src="function/code.php" width="110" height="32" class="imgCode"/></span>
							<a href="javascript:void(0);" class="change-pic reshCode">看不清？？</a>
						</td>
                        </tr>
                        <tr>
                          <td class="left"></td>
                          <td class="right"><input type="submit" class="reset-btn" value="更新资料" /> <a href="#" class="reset-btn">重设资料</a> </td>
                        </tr>
                      </tbody>
                    </table>
                  </form>
				</div>
            </div>
        </div>
    </div>
    <!--member center-->
    <!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
    <!--foot begin-->
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/sq.js"></script>
    <script type="text/javascript" src="js/jquery.cityselect.js"></script>
    <script type="text/javascript">
        $(function(){
            $(".now_city_select").citySelect({nodata:"none",required:false,prov:"<?=$user_localprov?>", city:"<?=$user_localcity?>", dist:"<?=$user_localdist?>"});
            $(".old_city_select").citySelect({nodata:"none",required:false,prov:"<?=$user_homeprov?>", city:"<?=$user_homecity?>", dist:"<?=$user_homedist?>"});
			
			// 表单提交
			$("#infoform").submit(function(){
				var user_passcode = $("#user_passcode").val();
				// 验证码验证
				if (user_passcode.replace(/\ /g,"").length<1){
					alert("请正确输入验证码！");
					$("#user_passcode").focus();
					return false;
				}
				if (isNaN(user_passcode.replace(/\ /g,""))){
					alert("请正确输入验证码！");
					$("#user_passcode").focus();
					return false;
				}
			});
	
			// 刷新验证码
			$(".reshCode").click(function(){
				$(".imgCode").attr("src","function/code.php?nums=" + Math.random());   
			});
			//电话号码截取
			$("input[name=user_tel]").keyup(function(){
				var str = $(this).val().slice(0,11);
				$(this).val(str);
			})
        });
    </script>
</body>
</html>

